Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid computing peerDAS info again and again. #14893

Merged
merged 4 commits into from
Feb 14, 2025

Conversation

nalepae
Copy link
Contributor

@nalepae nalepae commented Feb 7, 2025

Please read commit by commit.

This PR has 4 commits:

  1. Some renaming
  2. Split the content of helpers.go into more specific files. (Code move only.)
  3. Implement a new peerDAS Info function retrieving, from a cache if possible, all peerDAS information related to peers
  4. Use this new Info function when possible.

Don't be afraid by the diff, which is for the very large part du to the second commit, moving code from a single file big file to multiple specific small files.

@nalepae nalepae requested a review from a team as a code owner February 7, 2025 12:51
@nalepae nalepae requested review from kasey, terencechain and nisdas and removed request for a team February 7, 2025 12:51
@nalepae nalepae added the peerDAS label Feb 7, 2025
@nalepae nalepae force-pushed the peerDAS-validator-custody branch from 49a91a1 to b8803aa Compare February 8, 2025 20:06
)

var (
mut sync.Mutex
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename the var to indicate why we have the mutex and the cache ?

@nalepae nalepae merged commit ac04246 into peerDAS Feb 14, 2025
13 checks passed
@nalepae nalepae deleted the peerDAS-validator-custody branch February 14, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants